package com.ruoyi.merchant.other.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 优惠券领取
 */
@Data
public class CouponCollectionDto implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 1、用户扫码领取时传加密文
     * 2、商户主动发放时传优惠券订单号
     */
    @NotBlank(message = "优惠券信息校验失败")
    private String tamp;

    @NotNull(message = "请联系商户设置优惠金额")
    @Min(value = 0, message = "优惠金额不能小于0")
    private BigDecimal amount;

    @NotBlank(message = "请填写车牌号")
    private String carNum;

    private String qrCodeUrl;
}
